<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false" import="java.util.*"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="chtml" uri="http://www.szhelper.com/jsp/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>${partner.id==null?"添加":"修改" }合作商</title>
<script type="text/javascript">
	function onsubmits() {
		return true;
	}
</script>
</head>
<body>
	<div class="youarehere">
		系统管理 &gt; <span>合作商管理</span>&gt; <span>${partner.id==null?"添加":"修改"
			}合作商</span>
	</div>
	<c:if test="${partner.id == null}">
		<chtml:command command="partner" title="添加" exclude="createTime"
			onSubmit="onsubmits()" action="/partner/save" column="1">
			<chtml:button destination="/partner/savepartner" showText="添加"></chtml:button>
		</chtml:command>
	</c:if>
	<c:if test="${partner.id != null}">
		<chtml:command command="partner" title="修改" exclude="id,createTime"
			onSubmit="onsubmits()" action="/partner/modify" column="2">
			<chtml:property index="0" label="编号">${partner.id }
		<input name="id" type="hidden" value="${partner.id }" />
				<input name="createTime" type="hidden"
					value="${partner.createTime }" />
			</chtml:property>
			<chtml:button destination="/partner/modify" showText="更新"></chtml:button>
		</chtml:command>

		<div>
		<style type="text/css">
		.ty_table td{padding-left: 5px;padding-top: 5px; padding-bottom: 5px;}
		.ty_table .tr:hover{background: #ddd;}
		
		</style>
		<table border="1" cellpadding="5" cellspacing="1" bgcolor="#ddd" width="99%" class="ty_table">
		<tr style="background: #fff;line-height: 28px; font-weight: 700;" class="tr">
		<td>账户类型</td>
		<td>账户ID</td>
		<td>账户金额</td>
		<td>可用金额</td>
		<td>冻结金额</td>
		</tr>
		<c:if test="${not empty queryAccts}">
		<c:forEach items="${queryAccts.acctDetails}" var="acc">
		<tr style="background: #fff">
			<td>${acc.acctType }</td>
			<td>${acc.subAcctId }</td>
			<td>${acc.acctBal }</td>
			<td>${acc.avlBal }</td>
			<td>${acc.frzBal }</td>
		</tr>
		
		</c:forEach>
		</c:if>
		<table>
		</div>
	</c:if>
	<!--说明   -->
	<div class="sm_info">
		<p class="row_one">说明：</p>
		<p class="other"></p>
		<p class="other"></p>
	</div>
</body>
</html>